writeFile

abstract override fun writeFile(path: String, streamToWrite: BufferedSource)

Writes to a local data file, encrypting as it goes. The data to write is read from the given buffered source. If filename is a relative path (which it should be) it will be based on the safe root of the data folder.


abstract fun writeFile(filename: String, dataToWrite: InputStream?)

Writes to a local data file, encrypting as it goes. The data to write is read from the given input stream. If filename is a relative path (which it should be) it will be based on the safe root of the data folder.